﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DogJson
{
    public class JsonWriter
    {
        public JsonData ObjectToJsonData(object obj)
        {
            Type type = obj.GetType();
            if (type.IsClass)
            {
                if (type == typeof(string))
                {

                }
                else if (type.IsArray)
                {

                }
            }
            else if (type.IsValueType)
            {
                if (type.IsPrimitive)
                {

                }
                else
                {
                    //struct

                }
            }


            JsonData data = new JsonData();



            return data;
        }



    }

}

